<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml"> 
 
<head> 
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> 
	<title>湖南省自来水公司营销管理信息系统</title> 
	
	<link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/text.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/form.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/buttons.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/grid.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/layout.css" type="text/css" media="screen" title="no title" />
	
	<link rel="stylesheet" href="../../../css/ui-darkness/jquery-ui-1.8.12.custom.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/plugin/jquery.visualize.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/plugin/facebox.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/plugin/uniform.default.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/plugin/dataTables.css" type="text/css" media="screen" title="no title" />
	
	<link rel="stylesheet" href="../../../css/custom.css" type="text/css" media="screen" title="no title">
</head>

 
<body> 

<div id="wrapper">
	<#include "../common/header.ftl"/>
	<div id="masthead">
		<div>
			<span id="pagetitle"><a href="javascript:;">工单管理</a></span>
			<span id="welcome_span">欢迎回来，马云</span>
		</div>
	</div> <!-- #masthead -->	
	
	<div id="content" class="xgrid">
		<div class="x12">
			<h2>工单管理</h2>
			
			<div class="height40">
				<form action="/beOrder/be_order" method="post">
				工单类型 <select name="ordertype">
					<option value="">所有</option>
					<option value="1">新户</option>
					<option value="2">分户</option>
					<option value="3">过户</option>
					<option value="4">代扣</option>
					<option value="5">换表</option>
					<option value="6">重签</option>
					<option value="7">销户</option>
				</select>
				工程进度 <select name="stepid">
					<option value="">所有</option>
					<option value="1">用户申请</option>
					<option value="2">初步审核</option>
					<option value="3">交施工费</option>
					<option value="4">水费清算</option>
					<option value="5">供水合同</option>
					<option value="6">施工竣工</option>
					<option value="7">通水停水</option>
					<option value="8">档案存档</option>
					<option value="0">完成</option>
					<option value="-1">终止</option>
				</select>
				工单号 <input name="orderno" />
				用户姓名 <input name="username"/>
				<label><input type="checkbox" name="stepid1" />等待我处理</label>
				<#--<button class="btn btn-small btn-icon btn-find"><span></span>查询工单</button>-->
					<input class="btn btn-small btn-icon btn-find" type="submit" value="查询工单" id="cxgd">
                </form>
			</div>
			
			<table class="data display">
					<thead>
						<tr>
							<th width="120">工单号</th>
							<th width="60">类型</th>
							<th width="80">进度</th>
							<th width="90">当前处理部门</th>
							<th width="100">最后操作日期</th>
							<th width="200">用户名称</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
					<#list list as item>
						<tr class="odd">
							<td><a href="/beOrder/be_orderlnfo" target="orderInfo">${item.OrderNo}</a></td>
							<#switch item.OrderType>
								<#case 1>
								  <td>新户</td>
								<#break>
								<#case 2>
								 <td>分户</td>
								<#break>
								<#case 3>
								 <td>过户</td>
								<#break>
								<#case 4>
								 <td>代扣</td>
								<#break>
								<#case 5>
								 <td>换表</td>
								<#break>
								<#case 6>
								 <td>重签</td>
								<#break>
								<#case 7>
								 <td>销户</td>
								<#break>
								<#default>
							</#switch>
							<td>${item.StepName}</td>
							<td>${item.DeptName}</td>
							<td>${item.LastEditDate?string('yyyy -MM-dd')}</td>
							<td>${item.UserName}</td>
							<#if item.StepID==0||item.StepID==-1>
							<td></td>
							<#else>
								<td>
                                    <button class="btn-icon btn-small btn-blue btn-check" onClick="location.href = 'be__auditForm.html';"><span></span>处理</button>
								</td>
					       </#if>

						</tr>
					</#list>
					</tbody>
				</table>
				<div class="page">
					<a href="/beOrder/start?stat=1&type=order">第一页</a>
					<a href="/beOrder/start?stat=${page.pagenum-1}&type=order" id="oo"><input type="hidden" id="syy" value="${page.pagenum-1}">上一页</a>
					<input class="pageIndex" value="${page.pagenum}" id="pn"/> / <input class="pageCount" readonly="readonly" value="${page.pages}" id="zongpage"/>
					<a href="/beOrder/start?stat=${page.pagenum+1}&type=order" id="dd">下一页</a>
					<a href="/beOrder/start?stat=${page.pages}&type=order">第未页</a>
				</div>
			
		</div> <!-- .x12 -->
		
	</div> <!-- #content -->
	
	<div id="footer">		
		<div class="content_pad">			
			<p>&copy; 2013-11 版权所有 <a href="#">湖南省自来水公司</a>.   技术支持 <a href="#">华瑞教育</a>.</p>
		</div> <!-- .content_pad -->
	</div> <!-- #footer -->
	
</div> <!-- #wrapper -->

<script src="../../../js/jquery/jquery-1.5.2.min.js"></script>
<script src="../../../js/jquery/jquery-ui-1.8.12.custom.min.js"></script>
<script src="../../../js/misc/excanvas.min.js"></script>
<script src="../../../js/jquery/facebox.js"></script>
<script src="../../../js/jquery/jquery.visualize.js"></script>
<script src="../../../js/jquery/jquery.dataTables.min.js"></script>
<script src="../../../js/jquery/jquery.tablesorter.min.js"></script>
<script src="../../../js/jquery/jquery.uniform.min.js"></script>
<script src="../../../js/jquery/jquery.placeholder.min.js"></script>

<script src="../../../js/widgets.js"></script>
<script src="../../../js/dashboard.js"></script>

<script type="text/javascript">
	
$(document).ready ( function () 
{
	Dashboard.init ();		
});

</script>
<script>
    $(function () {
        //上一页
        $("#oo").click(function () {
            var opage=$("#syy").val();
            if (opage<=0) {
                return false;
            }
        })
		//下一页
        $("#dd").click(function () {
            var nextpage=$("#pn").val();
            var sizepage=$("#zongpage").val();
            if (nextpage==sizepage) {
                return false;
            }
        })
		//失去焦点查询指定页
        $("#pn").blur(function(){
            var nextpage=$("#pn").val();
            var sizepage=$("#zongpage").val();
            if (nextpage>sizepage) {
                alert("大于最大页")
                $("#pn").html("")
                return false;
            }
            if (nextpage<=0) {
                alert("输入有误")
                $("#pn").html("")
                return false;
			}
            window.location.href="http://localhost:8090//beOrder/start?stat="+nextpage+"&type=order";
        })
		//保存输入数据
		<#--$("#cxgd").click(function () {-->
		    <#--var ordertype=${"#ordertype"}.val()-->
			<#--var stepid=$("#stepid").val()-->
			<#--var orderno=$("orderno").val()-->
			<#--var username=$("username").val()-->
			<#--${"#ordertype"}.val(ordertype)-->
            <#--$("#orderno").val(orderno)-->
            <#--$("#stepid").val(stepid)-->
            <#--$("#username").val(username-->
        <#--})-->


    })

</script>

</body> 
 
</html>